package com.taotao.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.taotao.mapper.TbContentMapper;
import com.taotao.pojo.TbContent;

@Service
public class TbContentService extends BaseService<TbContent> {

	@Autowired
	private TbContentMapper mapper;
	
	public PageInfo<TbContent> queryEntities(Long categoryId, Integer page, Integer rows) {
		PageHelper.startPage(page, rows);
		return new PageInfo<TbContent>(mapper.queryListOrderByUpdated(categoryId));
	}

}
